<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=S, initial-scale=1.0">
    <title>ajax</title>
</head>
<body>
    <script>
        $.ajax({
            method:'post',
            url: 'method',
            success:function(body){
             console.log(body);
            }
        });
    </script>
</body>
</html>